package vn.edu.saigontech.ncms.web.englishtest;

import vn.edu.saigontech.ncms.web.AbstractValidator;

@SuppressWarnings("serial")
public class ValidateRegisterAction extends AbstractValidator {
	
	private Long id;
//	private String firstName;
//	private String lastName;
//	private String gender;
//	private String dateOfBirth;
//	private String email;
//	private String registeredDate;
//	private String testDate;
//	private Long programId;
//	private Long placementShiftId;
//	private Long consultantId;
//	private String phoneNumber;
	
	public String check() {
		//TestRegister candidate = CandidateService.INSTANCE.findById(this.id); 
		/*if(!Checker.isNull(this.id)) {
			if(Checker.isNull(candidate)) {
				this.sendKeyError("validator.nonExist", "candidate");
			}
			if(candidate.getVersion() != this.version) {
				this.sendKeyError("validator.concurrency", "candidate");
			}
		}*/
		return this.toSuccess();
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}
}